//
//  const.h
//  myvpn
//
//  Created by Zhuobin He on 12-12-31.
//  Copyright (c) 2012年 Zhuobin He. All rights reserved.
//

#ifndef myvpn_const_h

#define myvpn_const_h

#ifdef _WIN64
#define OS_WIN
#elif _WIN32
#define OS_WIN
#elif __WINDOWS_
#define OS_WIN
#elif __APPLE__
#define OS_MAC
#elif __linux
#define OS_LINUX
#elif __unix
#define OS_LINUX
#elif __posix
#define OS_LINUX
#endif


#define CLIENT 0
#define SERVER 1


#define LOG_NONE  0
#define LOG_ERROR 1
#define LOG_INFO  2
#define LOG_DEBUG 3
#define LOG_TRACE 4

#define PTYPE_HEARTBEAT 0
#define PTYPE_PARTIAL -1
#define PTYPE_ILLEGAL -2
#define PTYPE_END -50

#define TSTATUS_INIT 0
#define TSTATUS_CONNECTING 1
#define TSTATUS_AUTH_BEGIN 30
#define TSTATUS_ESTABLISH 100
#define TSTATUS_CLOSING 400

#define LOG_DEBUG_ENABLE

#endif
